package com.wzdigit.wms.basic.mapper.core.mid;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wzdigit.framework.orm.mybatis.MyBatisRepository;
import com.wzdigit.wms.basic.domain.dtos.mid.IfPostbackDto;
import com.wzdigit.wms.basic.domain.mid.IfPostback;
import com.wzdigit.wms.basic.client.request.postback.PostbackRequest;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 接口中间表-数据回传 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-03-11
 */
@MyBatisRepository
public interface IfPostbackMapper extends BaseMapper<IfPostback> {

    List<IfPostback> search(PostbackRequest request);
    
    List<IfPostbackDto> searchFailData(@Param("postbackResultList")List<Integer> postbackResultList, @Param("isErrorRemind")Integer isErrorRemind,
    		@Param("beginPostbackTime")Date beginPostbackTime, @Param("endPostbackTime")Date endPostbackTime);
    
    int updateIsErrorRemind(@Param("isErrorRemind")Integer isErrorRemind, 
    		@Param("modifyUser")String modifyUser, @Param("ifPostbackId")Integer ifPostbackId);
}